<!--
	作者：1055471363@qq.com
	时间：2017-12-11
	描述：信息查询
-->
<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>信息查询</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../../css/mui.min.css" rel="stylesheet" />
	</head>

	<body>
		<div class="mui-content" id="info">

			<ul class="mui-table-view mui-grid-view mui-grid-9">
				<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3" v-show="FEATURESCODE.indexOf('I0')>-1">
					<a href="#" id="curLots">
						<span class="mui-icon mui-icon-info"></span>
						<div class="mui-media-body">lot当前信息查询</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3" v-show="FEATURESCODE.indexOf('I1')>-1">
					<a href="#" id="curEqp">
						<span class="mui-icon mui-icon-flag"></span>
						<div class="mui-media-body">当前eqp作业量</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3" v-show="FEATURESCODE.indexOf('I2')>-1">
					<a href="#" id='oneselfEqp'>
						<span class="mui-icon mui-icon-bars"></span>
						<div class="mui-media-body">本人eqp作业信息</div>
					</a>
				</li>
			</ul>
		</div>

		<script src="../../js/mui.min.js"></script>
		<script type="text/javascript" src="../../js/vue.min.js" ></script>
		<script type="text/javascript">
			mui.init();

//			var titleNView = { //详情页原生导航配置
//				backgroundColor: '#f7f7f7', //导航栏背景色
//				titleText: '', //导航栏标题
//				titleColor: '#000000', //文字颜色
//				type: 'transparent', //透明渐变样式
//				autoBackButton: true, //自动绘制返回箭头
//				splitLine: { //底部分割线
//					color: '#cccccc'
//				}
//			}
//			mui.plusReady(function() {
//				//预加载子页面
//				var curLotsPage = mui.preload({
//					url: 'curLots.html',
//					id: 'curLotsPre',
//					styles: {
//						"render": "always", //一直渲染
//						"popGesture": "hide",
//						"titleNView": titleNView //使用原生渐变导航
//					}
//				});
//				var curEqpPage = mui.preload({
//					url: 'curEqp.html',
//					id: 'curEqptPre',
//					styles: {
//						"render": "always", //一直渲染
//						"popGesture": "hide",
//						"titleNView": titleNView //使用原生渐变导航
//					}
//				});
//				var oneselfEqpPage = mui.preload({
//
//					url: 'oneselfEqp.html',
//					id: 'oneselfEqpPre',
//					styles: {
//						"render": "always", //一直渲染
//						"popGesture": "hide",
//						"titleNView": titleNView //使用原生渐变导航
//					}
//				});
//				//增加log分析预加载页面是否已创建
//				//				setTimeout(function() {
//				//					var array = plus.webview.all();
//				//					if(array) {
//				//						for(var i = 0, len = array.length; i < len; i++) {
//				//							alert(i + array[i].getURL());
//				//						}
//				//					}
//				//				}, 5000)
//
//			});
			//权限配置
			var FEATURESCODE = localStorage.getItem("FEATURESCODE");
			var vm = new Vue({
				el:'#info',
				data:{
					FEATURESCODE:''
				},
				mounted: function() {
					var _this = this;
					_this.FEATURESCODE=FEATURESCODE
				}
			});
			document.getElementById('curLots').addEventListener('tap', function() {
				//打开curLots页面
				mui.openWindow({
					url: 'curLots.html',
					id: 'curLots'
				});
			});

			document.getElementById('curEqp').addEventListener('tap', function() {
				//打开curEqp页面
				mui.openWindow({
					url: 'curEqp.html',
					id: 'curEqp'
				});
			});

			document.getElementById('oneselfEqp').addEventListener('tap', function() {
				//打开oneselfEqp页面
				mui.openWindow({
					url: 'oneselfEqp.html',
					id: 'oneselfEqp'
				});
			});
		</script>
	</body>

</html>